package cn.tedu.ymg.product.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("ymg_order")
@Accessors(chain = true)
public class Order implements Serializable {
   @TableId(type = IdType.AUTO)
   private Long id;                   //'商品订单id'
   private Long userId;
   private Long setMealId  ;        //'套餐id'
   private String orderNum;           //'订单编号'
   private String phone          ;    //'电话'
   @DateTimeFormat
   private LocalDateTime creationTime;//'创建时间'
   private String productCategory;    //'商品分类'
   private Double orderAmount    ;    //'订单金额'
   private String orderComments  ;    //'订单备注'
}
